package nav

func NewNavResponse() *NavResponse {
	return &NavResponse{}
}

type NavFunc func(response *NavResponse)
type NavFuncs []NavFunc

func (this NavFuncs) apply(nva *NavResponse) {
	for _, navFunc := range this {
		navFunc(nva)
	}
}

func SetWithTitle(t string) NavFunc {
	return func(response *NavResponse) {
		response.Title = t
	}
}
func SetSort(s int) NavFunc {
	return func(response *NavResponse) {
		response.Sort = s
	}
}
func SetCov(cov string) NavFunc {
	return func(response *NavResponse) {
		response.Cov = cov
	}
}

